function searchByCategory(idcat)
{
    window.location = 'http://localhost/mxhphpfox/hoidap/mypost/idcategory_' + idcat; 
}

function ShowAllListCategory()
{
    $('.show_all_category').show();
    $('.close_search_cat').show();
}
function CloseAllListCategory()
{
    $('.show_all_category').hide();
    $('.close_search_cat').hide();
}